package com.xlisteven.springbootjpathymeleafcurd.service;

import com.xlisteven.springbootjpathymeleafcurd.pojo.User;

import java.util.List;
import java.util.Optional;

public interface UserService {
    List<User> getUserList();

    void save(User user);

    Optional<User> findUserById(Long id);

    void edit(User user);

    void delete(Long id);
}
